package com.igeekhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
/**
 * @author Romeo
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class WWaybill {
    private Integer waybillId;

    private Integer sendingId;

    private Integer destinationId;

    private Integer takerId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date sendTime;

    private Integer expressTypeId;

    private Integer transportMethodId;

    private Integer agentWaybillNumber;

    private Integer vipId;

    private String senderName;

    private String senderPhonenumber;

    private String senderIdcard;

    private String senderPost;

    private String detailedAddress;

    private String recipient;

    private String recipientPostcode;

    private String recipientDetailedAddress;

    private String itemName;

    private Integer number;

    private BigDecimal weight;

    private BigDecimal volume;

    private String remarks;

    private Integer paymentMethodId;

    private BigDecimal insuranceCharge;

    private BigDecimal serviceCharge;

    private BigDecimal otherCharge;

    private BigDecimal collectionOnDelivery;

    private BigDecimal freight;

    private BigDecimal totalMoney;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    private Integer status;

    private Integer networkId;

    private Integer transportNetworkId;

    private String recipientPhonenumber;

    private String recipientIdcard;

    private String recipientCompany;

    private Integer itemTypeId;

    private String url;

    private Integer destId;

    private String fileName;

    private String barcode;
    
    @Override
    public String toString() {
        return "WWaybill{" +
                "waybillId=" + waybillId +
                ", sendingId=" + sendingId +
                ", destinationId=" + destinationId +
                ", takerId=" + takerId +
                ", sendTime=" + sendTime +
                ", expressTypeId=" + expressTypeId +
                ", transportMethodId=" + transportMethodId +
                ", agentWaybillNumber=" + agentWaybillNumber +
                ", vipId=" + vipId +
                ", senderName='" + senderName + '\'' +
                ", senderPhonenumber='" + senderPhonenumber + '\'' +
                ", senderIdcard='" + senderIdcard + '\'' +
                ", senderPost='" + senderPost + '\'' +
                ", detailedAddress='" + detailedAddress + '\'' +
                ", recipient='" + recipient + '\'' +
                ", recipientPostcode='" + recipientPostcode + '\'' +
                ", recipientDetailedAddress='" + recipientDetailedAddress + '\'' +
                ", itemName='" + itemName + '\'' +
                ", number=" + number +
                ", weight=" + weight +
                ", volume=" + volume +
                ", remarks='" + remarks + '\'' +
                ", paymentMethodId=" + paymentMethodId +
                ", insuranceCharge=" + insuranceCharge +
                ", serviceCharge=" + serviceCharge +
                ", otherCharge=" + otherCharge +
                ", collectionOnDelivery=" + collectionOnDelivery +
                ", freight=" + freight +
                ", totalMoney=" + totalMoney +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", networkId=" + networkId +
                ", transportNetworkId=" + transportNetworkId +
                ", recipientPhonenumber='" + recipientPhonenumber + '\'' +
                ", recipientIdcard='" + recipientIdcard + '\'' +
                ", recipientCompany='" + recipientCompany + '\'' +
                ", itemTypeId=" + itemTypeId +
                ", url='" + url + '\'' +
                ", destId=" + destId +
                ", fileName='" + fileName + '\'' +
                ", barcode='" + barcode + '\'' +
                '}';
    }
}